﻿namespace EFS.RC.ClientPlatform
{
	public static class Settings
	{
		#region Properties

		/// <summary>
		/// Toast
		/// </summary>
		public static System.String Toast
		{
			get
			{
				return System.Configuration.ConfigurationManager.AppSettings["Toast"];
			}
		}

		/// <summary>
		/// ServerFqdn
		/// </summary>
		public static System.String LynkServerFqdn
		{
			get
			{
				return System.Configuration.ConfigurationManager.AppSettings["LynkServerFqdn"];
			}
			set 
			{
				System.Configuration.Configuration config = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.None);
				config.AppSettings.Settings["LynkServerFqdn"].Value = value;
				config.Save(System.Configuration.ConfigurationSaveMode.Modified);
				System.Configuration.ConfigurationManager.RefreshSection("appSettings");
			}
		}

		/// <summary>
		/// CcServerOfficeServiceSip
		/// </summary>
		public static System.String CcServerOfficeServiceSip
		{
			get
			{
				return System.Configuration.ConfigurationManager.AppSettings["CcServerOfficeServiceSip"];
			}
			set
			{
				System.Configuration.Configuration config = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.None);
				config.AppSettings.Settings["CcServerOfficeServiceSip"].Value = value;
				config.Save(System.Configuration.ConfigurationSaveMode.Modified);
				System.Configuration.ConfigurationManager.RefreshSection("appSettings");
			}
		}

		#endregion
	}

}